import { FC } from "react"

import { SFormItem } from "@/components/common"
import StyleSelect from "@/components/common/styleSelect"
import { useLocale } from "@/locales"

export type IPTypeField = {
	IPTypeCode: string
}
const LoginStatusSelector: FC = () => {
	const { formatMessage } = useLocale()
	const options = [
		{ label: formatMessage({ id: "label.member.success" }), value: "1" },
		{ label: formatMessage({ id: "label.member.failed" }), value: "0" }
	]

	return (
		<SFormItem name="loginStatus" label={formatMessage({ id: "label.member.login_status" })}>
			<StyleSelect options={options} style={{ width: "150px" }} placeholder={formatMessage({ id: "label.select_all" })} />
		</SFormItem>
	)
}

export default LoginStatusSelector
